﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Web/Master.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="UI.Web.Default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
     <title>首页-华南农业大学信息与软件学院</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="span10"></div>
           <!--轮换图调用-->
        <!--<include file="Public:luenhuan"/>-->    
            <div class="top_luhuan">
		        <div id="banner">
		          <ul class="bxslider1">
			        <li><img  src="images/1.jpg" alt=""  /></li>
			        <li><img  src="images/2.png" alt=""  /></li>
			        <li><img  src="images/3.png" alt=""  /></li>			      
		          </ul>
		        </div>
       
            </div>
    <!--新闻动态-->
    <div class="top_xinwen">
    	<div class="xw_xinwen">
        	<div class="xw_xw1">
            	<ul>
                	<li class="xw_Name">学院新闻<span class="more"><a href="AllArticle.aspx?column=科研成果">更多 >></a></span></li>   	
                         
                      <%for(int i=0;i<xueyuanList.Count;i++){ %> 
                    <li class="xw_liebiao" onmouseover="javascript:blurtitle(this)" id="title<%=i %>"><a href="Article.aspx?id=<%=xueyuanList[i].ID.ToString()%>&column=科研成果"><%=Utility.Tool.CutString(xueyuanList[i].Title.ToString(),32) %></a><span><%=Utility.Tool.GetShortDate( xueyuanList[i].UpdateDate.ToString() )%></span></li>
                    <li class="xw_images" id="content<%=i %>" <%=i==0?"style='display:block'":"style='display:none'" %>>
                           <span class="xw_span"><img src="images/dingying1.jpg" /></span>
                            <span class="xw_neirong">
                                <div class="xw_no1">
                                    <ul>                                              
                                        <li class="cw_abcnoct"><%=Utility.Tool.CutString(Utility.Tool.RemoveHtml(xueyuanList[i].Content.ToString()),100) %></li>
                                        <li class="cw_gengduo"><a href="Article.aspx?id=<%=xueyuanList[i].ID.ToString()%>&column=科研成果">阅读全文 >></a></li>  
                                    </ul>
                                </div>       	
                            </span>
                    </li>
                    <%} %>  
                </ul>
            </div>
        </div>
        <div class="xw_jiange"></div>
        <div class="xw_xinwen">
            <div class="xw_xw1">
                <ul>
                    <li class="xw_Name">学生动态<span class="more"><a href="AllArticle.aspx?column=学生动态">更多 >></a></span></li>

                    <%for(int i=0;i<xueshengList.Count;i++){ %> 
                        <li class="xw_liebiao" onmouseover="javascript:HDtitle(this)" id="HD<%=i%>"><a href="Article.aspx?id=<%=xueshengList[i].ID.ToString() %>&column=学生动态"><%=Utility.Tool.CutString(xueshengList[i].Title.ToString(),32) %></a><span><%=Utility.Tool.GetShortDate( xueshengList[i].UpdateDate.ToString() )%></span></li>
                    <li class="xw_images" id="HDT<%=i%>" <%=i==0?"style='display:block'":"style='display:none'" %>>
                    <span class="xw_span"><img src="images/dingying2.jpg" /></span>
                        <span class="xw_neirong">
                            <div class="xw_no1">
                                <ul>
                                    <li class="cw_abcnoct"><%=Utility.Tool.CutString(Utility.Tool.RemoveHtml(xueshengList[i].Content.ToString()),100) %></li>
                                    <li class="cw_gengduo"><a href="Article.aspx?id=<%=xueshengList[i].ID.ToString() %>&column=学生动态">阅读全文 >></a></li>
                                </ul>
                            </div>
                        </span>
                    </li>
                    <%} %>      
                </ul>
            </div>
        </div>
        <div class="xw_jiange"></div>
        <div class="xw_gonggao">
            <div class="xw_xw1">              
                <ul>
                    <li class="xw_Name">学生通知</li>
                </ul>
                <div id="demo">
                    <marquee direction=up height=100 onmouseout="this.start()" onmouseover="this.stop()" scrollamount=2>
                        <ul>
                            <li class="xw_liebiao"><em>&lt;实时公告&gt;</em><span>2014-07-14</span></li>
                            <li class="xw_ggcontent"><em>正文：</em>这是公告自动滚动，很好看吧，我一定会好好加油的。这是公告自动滚动，很好看吧，我一定会好好加油的。这是公告自动滚动，很好看吧，我一定会好好加油的。</li>
                            <li><span><a href="Article.aspx#div1">更多详情 >></a></span></li>

                        </ul></marquee>
                </div>
          </div>
        </div>
           <div class="xw_gonggao2">
            <div class="xw_xw1">              
                <ul>
                    <li class="xw_Name">教工通知</li>
                </ul>
                <div id="demo2">
                    <marquee direction=up height=100 onmouseout="this.start()" onmouseover="this.stop()" scrollamount=2>
                        <ul>
                            <li class="xw_liebiao"><em>&lt;实时公告&gt;</em><span>2014-07-14</span></li>
                            <li class="xw_ggcontent"><em>正文：</em>这是公告自动滚动，很好看吧，我一定会好好加油的。这是公告自动滚动，很好看吧，我一定会好好加油的。这是公告自动滚动，很好看吧，我一定会好好加油的。</li>
                            <li><span><a href="Article.aspx#div1">更多详情 >></a></span></li>

                        </ul></marquee>
                </div>
          </div>
        </div>
     </div>
    <div class="top_xinwen">
        <div class="xw_xinwen">
            <div class="xw_xw1">
                <ul>
                    <li class="xw_Name">就业信息<span class="more"><a href="AllArticle.aspx?column=就业信息">更多 >></a></span></li>

                      <%for(int i=0;i<jiuyeList.Count;i++){ %> 
                        <li class="xw_liebiao" onmouseover="javascript:KJtitle(this)" id="KJ<%=i%>"><a href="Article.aspx?id=<%=jiuyeList[i].ID.ToString() %>&column=就业信息"><%=Utility.Tool.CutString(jiuyeList[i].Title.ToString(),32) %></a><span><%=Utility.Tool.GetShortDate( jiuyeList[i].UpdateDate.ToString() )%></span></li>
                    <li class="xw_images" id="KJT<%=i%>" <%=i==0?"style='display:block'":"style='display:none'" %>>
                         <span class="xw_span"><img src="images/dingying3.jpg" /></span>
                        <span class="xw_neirong">
                            <div class="xw_no1">
                                <ul>
                                    <li class="cw_abcnoct"><%=Utility.Tool.CutString(Utility.Tool.RemoveHtml(jiuyeList[i].Content.ToString()),100) %></li>
                                    <li class="cw_gengduo"><a href="Article.aspx?id=<%=jiuyeList[i].ID.ToString() %>&column=就业信息">阅读全文 >></a></li>
                                </ul>
                            </div>
                        </span>
                    </li>
                    <%} %>        
                </ul>
            </div>
        </div>
        <div class="xw_jiange"></div>
        <div class="xw_xinwen">
            <div class="xw_xw1">
                <ul>
                    <li class="xw_Name">党务公开<span class="more"><a href="AllArticle.aspx?column=党务公开">更多 >></a></span></li>

                    <%for(int i=0;i<dangwuList.Count;i++){ %> 
                        <li class="xw_liebiao" onmouseover="javascript:XLtitle(this)" id="XL<%=i%>"><a href="Article.aspx?id=<%=dangwuList[i].ID.ToString() %>&column=党务公开"><%=Utility.Tool.CutString(dangwuList[i].Title.ToString(),32) %></a><span><%=Utility.Tool.GetShortDate( dangwuList[i].UpdateDate.ToString() )%></span></li>
                    <li class="xw_images" id="XLT<%=i%>" <%=i==0?"style='display:block'":"style='display:none'" %>>
                        <span class="xw_span"><img src="images/dingying4.jpg" /></span>
                        <span class="xw_neirong">
                            <div class="xw_no1">
                                <ul>
                                    <li class="cw_abcnoct"><%=Utility.Tool.CutString(Utility.Tool.RemoveHtml(dangwuList[i].Content.ToString()),100) %></li>
                                    <li class="cw_gengduo"><a href="Article.aspx?id=<%=dangwuList[i].ID.ToString() %>&column=党务公开">阅读全文 >></a></li>
                                </ul>
                            </div>
                        </span>
                    </li>
                    <%} %>      
                </ul>
            </div>
        </div>
        <div class="xw_jiange"></div>
         <div class="xw_zhuanti">
            <div class="xw_xw1">          
                <h2>专题栏</h2>
                <div>
                    <a href="AllArticle.aspx?column=科研成果" class="zonghe">科研专题</a>
                    <a href="AllArticle.aspx?column=就业信息" class="saishi">就业专题</a>
                    <a href="AllArticle.aspx?column=党务公开" class="ziyuan">党建专题</a>
                </div>
            </div>
        </div>
        <div class="xw_lxTel">
                <div class="xw_xw1">
                    <h2>推荐链接</h2>
                    <div>
                        <a href="http://www.scau.edu.cn/" class="zhuye" target="_blank">校主页</a>
                        <a href="http://202.116.160.167/" class="jiaowu" target="_blank">学生教务系统</a>
                        <a href="http://su.scau.edu.cn/" class="xueshenghui" target="_blank">校学生会</a>
                        <a href="http://web.scau.edu.cn/xsgzc1" class="gongzuochu" target="_blank">学生工作处</a>
                    </div>                  
                </div>
        </div>
     </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder3" runat="server">
    <script type="text/javascript">
        function blurtitle(v) { //鼠标滑过显示内容方法
            for (var i = 0; i < 5; i++) { //以3个标题举例
                if ("title" + i == v.id) { //当前循环的i如果是正确的标题，将内容的display设为block，即显示
                    document.getElementById("content" + i).style.display = "block";
                } else { //当前循环的i是其他标题，将内容设为none，即隐藏
                    document.getElementById("content" + i).style.display = "none";
                }
            }
        }
        function HDtitle(v) { 
            for (var i = 0; i < 5; i++) { 
                if ("HD" + i == v.id) {
                    document.getElementById("HDT" + i).style.display = "block";
                } else { 
                    document.getElementById("HDT" + i).style.display = "none";
                }
            }
        }
        function KJtitle(v) { 
            for (var i = 0; i < 5; i++) {
                if ("KJ" + i == v.id) { 
                    document.getElementById("KJT" + i).style.display = "block";
                } else {
                    document.getElementById("KJT" + i).style.display = "none";
                }
            }
        }
        function XLtitle(v) {
            for (var i = 0; i < 5; i++) { 
                if ("XL" + i == v.id) {
                    document.getElementById("XLT" + i).style.display = "block";
                } else { 
                    document.getElementById("XLT" + i).style.display = "none";
                }
            }
        }
        $('.bxslider1').bxSlider({
            auto: true,
            infiniteLoop: true,
            hideControlOnEnd: true
        });
        </script>
</asp:Content>
